<template>
    <div class="father">
        父元素
        <div class="son">
            子元素
        </div>
    </div>
</template>
<script setup name="event"> 
console.log('使用console.log确认event组件是否被正确加载');
</script>

<style>
.father{
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    position: relative;
}
.son{
    width: 100px;
    height: 100px;
    background-color: #ff0000;
    position: absolute;
    top: 50px;
    left: 50px;
}
</style>